﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_PreInit(object sender, EventArgs e)
        {

            //Response.Write("Page_PreInit</br>");
        }

        protected void Page_Init(object sender, EventArgs e)
        {
            Response.Write("Page_Init</br>");
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            //HttpCookie cookie = new HttpCookie("User");
            //cookie.Values.Add("a", "a");
            //cookie.Values.Add("b", "b");
            HttpApplication app = new HttpApplication();
            StringBuilder sb = new StringBuilder();
            foreach (string mod in app.Modules.AllKeys)
            {
                sb.AppendLine(mod);
            }
            Response.Write(sb.ToString());
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Write("Button1_Click</br>");
        }

        protected void Page_InitComplete(object sender, EventArgs e)
        {
            Response.Write("Page_InitComplete</br>");
        }

        protected void Page_PreLoad(object sender, EventArgs e)
        {
            Response.Write("Page_PreLoad</br>");
        }
    }
}
